

class {{> model_templates/classname }}(
    schemas.ListSchema
):
{{#if this.classname}}
    """NOTE:
{{> partial_class_header}}
{{#if description}}

    {{{unescapedDescription}}}
{{/if}}
    """
{{/if}}
{{#if isStub}}
{{#if items}}


    class MetaOapg:
        {{> model_templates/list_partial modelsHaveSchemaSuffix=modelsHaveSchemaSuffix}}
{{/if}}
{{else}}
{{#or getItems hasValidation}}


    class MetaOapg:
{{#if hasValidation}}
        {{> model_templates/validations }}
{{/if}}
        {{> model_templates/list_partial modelsHaveSchemaSuffix=modelsHaveSchemaSuffix}}
{{/or}}
{{/if}}

    {{> model_templates/new }}

    def __getitem__(self, i: int) -> {{#with items}}{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.items{{/if}}{{/with}}:
        return super().__getitem__(i)
